package com.rose.datax.dataxadmin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("migration_table")
public class MigrationTable extends BaseEntity {

    private static final long serialVersionUID = -5217752382155872085L;

    @TableField("task_id")
    private Long taskId;

    @TableField("table_name")
    private String tableName;
    //表结构
    @TableField("table_struct")
    private String tableStruct;
    //记录数
    private long rows;
    //datax 读出的记录数
    @TableField("read_records")
    private long readRecords;
    private String  status;
    //当status同步失败时 记录失败原因到该字段
    private String error;
    //发费的时间
    @TableField("cost_time")
    private String costTime;
    //读写失败数量
    @TableField("write_fail")
    private long writeFail;
}
